import React, {PureComponent} from 'react';
import {StyleSheet, View, Image, Text, TouchableOpacity} from 'react-native';

export default class extends PureComponent {
    render() {
        const {navigation} = this.props;
        return (
            <View style={styles.container}>
                <View style={styles.headerWrap}>
                    <TouchableOpacity onPress={() => {
                        navigation.goBack();
                    }}>
                        <Image source={require('../../../images/icon_left_1.png')} style={styles.image}/>
                    </TouchableOpacity>
                    <Text style={styles.title}>创建分享</Text>
                </View>
            </View>
        );
    }
}


const styles = StyleSheet.create({
    container: {
        height: 58,
        paddingTop: 20,
        backgroundColor: '#f84056'
    },
    headerWrap: {
        height: 38,
        flexDirection: 'row',
        alignItems: 'center',
        paddingLeft: 12,
        paddingRight: 32
    },
    title: {
        fontSize: 16,
        color: '#ffffff',
        textAlign: 'center',
        flex: 1
    },
    image: {
        width: 20,
        height: 20
    }
});
